import http from '@/utils/http';

const actionLog = {
  //出入库记录视图
  query(params: any) {
    let url = '/ActionLog/Query';
    return http.post(url, params);
  },
  ///获取对应类型可收货的订单
  getCanReceiveOrder(relationType: Number) {
    let url = '/ActionLog/GetCanReceiveOrder';
    let params = { relationType: relationType };
    return http.get(url, params);
  },
  //收货单保存
  save(params: Object) {
    let url = '/ActionLog/Save';
    return http.post(url, params);
  },
  //出入库记录审核
  check(ids: Array<Number>) {
    let url = '/ActionLog/Check';
    const params = { ids };
    return http.post(url, params);
  },
  //导出
  export(params: Object) {
    let url = '/ActionLog/Export';
    return http.postDownload(url, params);
  },
  //导出
  exportLackReceive(params: Object) {
    let url = '/ActionLog/ExportLackReceive';
    return http.postDownload(url, params);
  },
};
export default actionLog;
